{% extends 'front/front_signbase.html' %}
{% from 'common/_macros.html' import static %}

{% block title -%}
    登录页面
{%- endblock %}

{% block head -%}
    {{ super() }}
    <script src="{{ static('front/js/front_signin.js') }}"></script>
{%- endblock %}

{% block page_title -%}
    BBS论坛登录
{%- endblock %}

{% block form_data -%}
    <div class="form-group">
        <input type="email" class="form-control" name="email" placeholder="邮箱号">
    </div>
    <div class="form-group">
        <input type="password" class="form-control" name="password" placeholder="密码">
    </div>
    <div class="form-group">
        <div class="input-group">
            <input type="text" class="form-control" name="graph_captcha" placeholder="验证码">
            <span class="input-group-addon captcha-addon">
                        <img class="captcha-img" id="captcha-img" src="{{ url_for('front.graph_captcha') }}" alt="图像验证码"
                             title="点击刷新验证码">
                    </span>
        </div>
    </div>
    <div class="checkbox">
        <label>
            <input type="checkbox" name="rememberPsw" value="1"> 记住密码
        </label>
    </div>
    <div class="form-group">
        <button id="submit_signin" class="btn btn-warning btn-block">立即登录</button>
    </div>
    <div class="form-group">
        <span><a href="{{ url_for('front.signup') }}">没有账户？点击注册</a></span>
        <span style="float: right"><a href="{{ url_for('front.fpwd') }}">忘记密码？</a></span>
    </div>
{%- endblock %}